package com.tg.data.http.entity;

public class WatchTime {
    private long initial_time;
    private long expiration_time;
    private int total;
    private int used;

    public long getInitial_time() {
        return initial_time;
    }

    public void setInitial_time(long initial_time) {
        this.initial_time = initial_time;
    }

    public long getExpiration_time() {
        return expiration_time;
    }

    public void setExpiration_time(long expiration_time) {
        this.expiration_time = expiration_time;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getUsed() {
        return used;
    }
    public int getAvailable(){
        return total - used;
    }
    public boolean isAvailable(){
        return getAvailable()>0;
    }

    public void setUsed(int used) {
        this.used = used;
    }
}
